package com.smh.a04SetDemo1;

import java.util.TreeSet;

public class TreeSetDemo2 {
    public static void main(String[] args) {
        Student student = new Student("asd",12,"nan");
        Student student2 = new Student("qwe",13,"nan");
        Student student3 = new Student("zxc",14,"nv");
        Student student4= new Student("fgh",11,"nan");



        TreeSet<Student> ts = new TreeSet<>();
        ts.add(student);
        ts.add(student2);
        ts.add(student3);
        ts.add(student4);
        System.out.println(ts);


    }
}
